package hc.bre.calc.scorecard

import com.fasterxml.jackson.annotation.JsonInclude

import hc.bre.policy.CheckResultStruct
import hc.bre.cmn.struct.DataStruct
import hc.bre.cmn.struct.DataStructItem
import hc.bre.cmn.struct.Importance
import hc.bre.cmn.struct.RuleResultStruct
import hc.bre.policy.CheckResultReason

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
class ScResultStruct extends RuleResultStruct{//CheckResultStruct
	ScResultStruct() {
		DataStructItem item;
		item = new DataStructItem();
		item.id = ++maxid;
		item.code = 'score';
		item.name = '总得分';
		item.type = 'number';
		item.important = Importance.KEYRESULT;
		root.list.add(item);
		
		item = new DataStructItem();
		item.id = ++maxid;
		item.code = 'detail';
		item.name = '评分卡详情';
		item.type = 'object';
		item.important = Importance.SPECIFIC;
		root.list.add(item);
	}
}
